﻿using System;
using Rio.Framework.Pages.AppCode.Enums;

namespace Rio.Framework.Pages.Events
{
    /// <summary>
    /// Delegate definition
    /// </summary>
    /// <param name="sender">The source of the event.</param>
    /// <param name="e">The <see cref="DocumentSelectedEventArgs"/> instance containing the event data.</param>
    public delegate void DocumentRibbonEventHandler(object sender, DocumentRibbonBarEventArgs args);

    /// <summary>
    /// Event arguments used by DocumentRibbonEventHandler
    /// </summary>
    public class DocumentRibbonBarEventArgs : EventArgs
    {
        /// <summary>
        /// Selected button in the ribbon bar
        /// </summary>
        public DocumentRibbonBarMenuItems DocumentRibbonBarMenuItem   { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentRibbonBarEventArgs" /> class.
        /// </summary>
        public DocumentRibbonBarEventArgs()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentRibbonBarEventArgs" /> class.
        /// </summary>
        /// <param name="p_oDocumentRibbonBarMenuItem">The p_o document ribbon bar menu item.</param>
        public DocumentRibbonBarEventArgs(DocumentRibbonBarMenuItems p_oDocumentRibbonBarMenuItem)
        {
            this.DocumentRibbonBarMenuItem = p_oDocumentRibbonBarMenuItem;
        }

        
    }
}
